package com.example.bigwork.fragment;

import android.annotation.SuppressLint;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.webkit.WebChromeClient;
import android.webkit.WebResourceRequest;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.TextView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import com.example.bigwork.R;

public class InfantFragment extends Fragment {

    public static WebView webView;

    @SuppressLint("MissingInflatedId")
    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        //绑定布局文件
        View infantPage = inflater.inflate(R.layout.infant_tablayout_activity,null);


        webView = (WebView) infantPage.findViewById(R.id.tv_infant);
        webView.loadUrl("https://www.bigc.edu.cn/");
        webView.setWebViewClient(new WebViewClient());



        return infantPage;

    }



}
